<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">Distribution.Types.AnnotatedId</span><span> </span><span class="hs-special">(</span><span>
</span><span id="line-2"></span><span>    </span><span class="annot"><a href="Distribution.Types.AnnotatedId.html#AnnotatedId"><span class="hs-identifier">AnnotatedId</span></a></span><span class="hs-special">(</span><span class="hs-glyph">..</span><span class="hs-special">)</span><span>
</span><span id="line-3"></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-4"></span><span>
</span><span id="line-5"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Prelude.html#"><span class="hs-identifier">Prelude</span></a></span><span> </span><span class="hs-special">(</span><span class="hs-special">)</span><span>
</span><span id="line-6"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Compat.Prelude.html"><span class="hs-identifier">Distribution.Compat.Prelude</span></a></span><span>
</span><span id="line-7"></span><span>
</span><span id="line-8"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Package.html"><span class="hs-identifier">Distribution.Package</span></a></span><span>
</span><span id="line-9"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="Distribution.Types.ComponentName.html"><span class="hs-identifier">Distribution.Types.ComponentName</span></a></span><span>
</span><span id="line-10"></span><span>
</span><span id="line-11"></span><span class="hs-comment">-- | An 'AnnotatedId' is a 'ComponentId', 'UnitId', etc.</span><span>
</span><span id="line-12"></span><span class="hs-comment">-- which is annotated with some other useful information</span><span>
</span><span id="line-13"></span><span class="hs-comment">-- that is useful for printing to users, etc.</span><span>
</span><span id="line-14"></span><span class="hs-comment">--</span><span>
</span><span id="line-15"></span><span class="hs-comment">-- Invariant: if ann_id x == ann_id y, then ann_pid x == ann_pid y</span><span>
</span><span id="line-16"></span><span class="hs-comment">-- and ann_cname x == ann_cname y</span><span>
</span><span id="line-17"></span><span class="hs-keyword">data</span><span> </span><span id="AnnotatedId"><span class="annot"><a href="Distribution.Types.AnnotatedId.html#AnnotatedId"><span class="hs-identifier hs-var">AnnotatedId</span></a></span></span><span> </span><span id="local-6989586621679660296"><span class="annot"><a href="#local-6989586621679660296"><span class="hs-identifier hs-type">id</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span id="AnnotatedId"><span class="annot"><a href="Distribution.Types.AnnotatedId.html#AnnotatedId"><span class="hs-identifier hs-var">AnnotatedId</span></a></span></span><span> </span><span class="hs-special">{</span><span>
</span><span id="line-18"></span><span>        </span><span id="ann_pid"><span class="annot"><span class="annottext">forall id. AnnotatedId id -&gt; PackageId
</span><a href="Distribution.Types.AnnotatedId.html#ann_pid"><span class="hs-identifier hs-var hs-var">ann_pid</span></a></span></span><span>   </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Types.PackageId.html#PackageId"><span class="hs-identifier hs-type">PackageId</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-19"></span><span>        </span><span id="ann_cname"><span class="annot"><span class="annottext">forall id. AnnotatedId id -&gt; ComponentName
</span><a href="Distribution.Types.AnnotatedId.html#ann_cname"><span class="hs-identifier hs-var hs-var">ann_cname</span></a></span></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="Distribution.Types.ComponentName.html#ComponentName"><span class="hs-identifier hs-type">ComponentName</span></a></span><span class="hs-special">,</span><span>
</span><span id="line-20"></span><span>        </span><span id="ann_id"><span class="annot"><span class="annottext">forall id. AnnotatedId id -&gt; id
</span><a href="Distribution.Types.AnnotatedId.html#ann_id"><span class="hs-identifier hs-var hs-var">ann_id</span></a></span></span><span>    </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="#local-6989586621679660296"><span class="hs-identifier hs-type">id</span></a></span><span>
</span><span id="line-21"></span><span>    </span><span class="hs-special">}</span><span>
</span><span id="line-22"></span><span>    </span><span class="hs-keyword">deriving</span><span> </span><span class="hs-special">(</span><span id="local-6989586621679660238"><span id="local-6989586621679660240"><span id="local-6989586621679660249"><span class="annot"><span class="annottext">Int -&gt; AnnotatedId id -&gt; ShowS
[AnnotatedId id] -&gt; ShowS
AnnotatedId id -&gt; String
(Int -&gt; AnnotatedId id -&gt; ShowS)
-&gt; (AnnotatedId id -&gt; String)
-&gt; ([AnnotatedId id] -&gt; ShowS)
-&gt; Show (AnnotatedId id)
forall id. Show id =&gt; Int -&gt; AnnotatedId id -&gt; ShowS
forall id. Show id =&gt; [AnnotatedId id] -&gt; ShowS
forall id. Show id =&gt; AnnotatedId id -&gt; String
forall a.
(Int -&gt; a -&gt; ShowS) -&gt; (a -&gt; String) -&gt; ([a] -&gt; ShowS) -&gt; Show a
showList :: [AnnotatedId id] -&gt; ShowS
$cshowList :: forall id. Show id =&gt; [AnnotatedId id] -&gt; ShowS
show :: AnnotatedId id -&gt; String
$cshow :: forall id. Show id =&gt; AnnotatedId id -&gt; String
showsPrec :: Int -&gt; AnnotatedId id -&gt; ShowS
$cshowsPrec :: forall id. Show id =&gt; Int -&gt; AnnotatedId id -&gt; ShowS
</span><a href="../../base/src/GHC.Show.html#Show"><span class="hs-identifier hs-var hs-var hs-var hs-var hs-var hs-var hs-var hs-var">Show</span></a></span></span></span></span><span class="hs-special">)</span><span>
</span><span id="line-23"></span><span>
</span><span id="line-24"></span><span id="local-6989586621679660287"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679660234"><span class="annot"><span class="hs-identifier hs-type">Eq</span></span><span> </span><span class="annot"><a href="#local-6989586621679660287"><span class="hs-identifier hs-type">id</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Eq</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Types.AnnotatedId.html#AnnotatedId"><span class="hs-identifier hs-type">AnnotatedId</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679660287"><span class="hs-identifier hs-type">id</span></a></span><span class="hs-special">)</span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-25"></span><span>    </span><span id="local-6989586621679660231"><span class="annot"><span class="annottext">AnnotatedId id
</span><a href="#local-6989586621679660231"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621679660230"><span class="annot"><span class="annottext">== :: AnnotatedId id -&gt; AnnotatedId id -&gt; Bool
</span><span class="hs-operator hs-var hs-var hs-var hs-var">==</span></span></span><span> </span><span id="local-6989586621679660229"><span class="annot"><span class="annottext">AnnotatedId id
</span><a href="#local-6989586621679660229"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">AnnotatedId id -&gt; id
forall id. AnnotatedId id -&gt; id
</span><a href="Distribution.Types.AnnotatedId.html#ann_id"><span class="hs-identifier hs-var hs-var">ann_id</span></a></span><span> </span><span class="annot"><span class="annottext">AnnotatedId id
</span><a href="#local-6989586621679660231"><span class="hs-identifier hs-var">x</span></a></span><span> </span><span class="annot"><span class="annottext">id -&gt; id -&gt; Bool
forall a. Eq a =&gt; a -&gt; a -&gt; Bool
</span><span class="hs-operator hs-var">==</span></span><span> </span><span class="annot"><span class="annottext">AnnotatedId id -&gt; id
forall id. AnnotatedId id -&gt; id
</span><a href="Distribution.Types.AnnotatedId.html#ann_id"><span class="hs-identifier hs-var hs-var">ann_id</span></a></span><span> </span><span class="annot"><span class="annottext">AnnotatedId id
</span><a href="#local-6989586621679660229"><span class="hs-identifier hs-var">y</span></a></span></span><span>
</span><span id="line-26"></span><span>
</span><span id="line-27"></span><span id="local-6989586621679660285"><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679660214"><span id="local-6989586621679660216"><span id="local-6989586621679660218"><span id="local-6989586621679660220"><span id="local-6989586621679660222"><span id="local-6989586621679660224"><span class="annot"><span class="hs-identifier hs-type">Ord</span></span><span> </span><span class="annot"><a href="#local-6989586621679660285"><span class="hs-identifier hs-type">id</span></a></span><span> </span><span class="hs-glyph">=&gt;</span><span> </span><span class="annot"><span class="hs-identifier hs-type">Ord</span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Types.AnnotatedId.html#AnnotatedId"><span class="hs-identifier hs-type">AnnotatedId</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679660285"><span class="hs-identifier hs-type">id</span></a></span><span class="hs-special">)</span></span></span></span></span></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-28"></span><span>    </span><span id="local-6989586621679660211"><span class="annot"><span class="annottext">compare :: AnnotatedId id -&gt; AnnotatedId id -&gt; Ordering
</span><span class="hs-identifier hs-var hs-var hs-var hs-var">compare</span></span></span><span> </span><span id="local-6989586621679660209"><span class="annot"><span class="annottext">AnnotatedId id
</span><a href="#local-6989586621679660209"><span class="hs-identifier hs-var">x</span></a></span></span><span> </span><span id="local-6989586621679660208"><span class="annot"><span class="annottext">AnnotatedId id
</span><a href="#local-6989586621679660208"><span class="hs-identifier hs-var">y</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">id -&gt; id -&gt; Ordering
forall a. Ord a =&gt; a -&gt; a -&gt; Ordering
</span><span class="hs-identifier hs-var">compare</span></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">AnnotatedId id -&gt; id
forall id. AnnotatedId id -&gt; id
</span><a href="Distribution.Types.AnnotatedId.html#ann_id"><span class="hs-identifier hs-var hs-var">ann_id</span></a></span><span> </span><span class="annot"><span class="annottext">AnnotatedId id
</span><a href="#local-6989586621679660209"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">AnnotatedId id -&gt; id
forall id. AnnotatedId id -&gt; id
</span><a href="Distribution.Types.AnnotatedId.html#ann_id"><span class="hs-identifier hs-var hs-var">ann_id</span></a></span><span> </span><span class="annot"><span class="annottext">AnnotatedId id
</span><a href="#local-6989586621679660208"><span class="hs-identifier hs-var">y</span></a></span><span class="hs-special">)</span></span><span>
</span><span id="line-29"></span><span>
</span><span id="line-30"></span><span id="local-6989586621679660281"><span class="hs-keyword">instance</span><span> </span><span class="annot"><a href="Distribution.Package.html#Package"><span class="hs-identifier hs-type">Package</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Types.AnnotatedId.html#AnnotatedId"><span class="hs-identifier hs-type">AnnotatedId</span></a></span><span> </span><span class="annot"><a href="#local-6989586621679660281"><span class="hs-identifier hs-type">id</span></a></span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-31"></span><span>    </span><span id="local-6989586621679660204"><span class="annot"><span class="annottext">packageId :: AnnotatedId id -&gt; PackageId
</span><a href="Distribution.Package.html#packageId"><span class="hs-identifier hs-var hs-var hs-var hs-var">packageId</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">AnnotatedId id -&gt; PackageId
forall id. AnnotatedId id -&gt; PackageId
</span><a href="Distribution.Types.AnnotatedId.html#ann_pid"><span class="hs-identifier hs-var hs-var">ann_pid</span></a></span></span><span>
</span><span id="line-32"></span><span>
</span><span id="line-33"></span><span class="hs-keyword">instance</span><span> </span><span id="local-6989586621679660200"><span class="annot"><a href="../../base/src/GHC.Base.html#Functor"><span class="hs-identifier hs-type">Functor</span></a></span><span> </span><span class="annot"><a href="Distribution.Types.AnnotatedId.html#AnnotatedId"><span class="hs-identifier hs-type">AnnotatedId</span></a></span></span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-34"></span><span>    </span><span id="local-6989586621679660198"><span class="annot"><span class="annottext">fmap :: forall a b. (a -&gt; b) -&gt; AnnotatedId a -&gt; AnnotatedId b
</span><a href="../../base/src/GHC.Base.html#fmap"><span class="hs-identifier hs-var hs-var hs-var hs-var">fmap</span></a></span></span><span> </span><span id="local-6989586621679660197"><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621679660197"><span class="hs-identifier hs-var">f</span></a></span></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="Distribution.Types.AnnotatedId.html#AnnotatedId"><span class="hs-identifier hs-type">AnnotatedId</span></a></span><span> </span><span id="local-6989586621679660196"><span class="annot"><span class="annottext">PackageId
</span><a href="#local-6989586621679660196"><span class="hs-identifier hs-var">pid</span></a></span></span><span> </span><span id="local-6989586621679660195"><span class="annot"><span class="annottext">ComponentName
</span><a href="#local-6989586621679660195"><span class="hs-identifier hs-var">cn</span></a></span></span><span> </span><span id="local-6989586621679660194"><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679660194"><span class="hs-identifier hs-var">x</span></a></span></span><span class="hs-special">)</span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">PackageId -&gt; ComponentName -&gt; b -&gt; AnnotatedId b
forall id. PackageId -&gt; ComponentName -&gt; id -&gt; AnnotatedId id
</span><a href="Distribution.Types.AnnotatedId.html#AnnotatedId"><span class="hs-identifier hs-var">AnnotatedId</span></a></span><span> </span><span class="annot"><span class="annottext">PackageId
</span><a href="#local-6989586621679660196"><span class="hs-identifier hs-var">pid</span></a></span><span> </span><span class="annot"><span class="annottext">ComponentName
</span><a href="#local-6989586621679660195"><span class="hs-identifier hs-var">cn</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><span class="annottext">a -&gt; b
</span><a href="#local-6989586621679660197"><span class="hs-identifier hs-var">f</span></a></span><span> </span><span class="annot"><span class="annottext">a
</span><a href="#local-6989586621679660194"><span class="hs-identifier hs-var">x</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-35"></span></pre></body></html>